<h1>
    <span style="font-family: Calibri;font-size: 29px">1.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">字段代码</span></strong><strong></strong>
</h1>
<p>
    <span style="font-family: 宋体;font-size: 12px"><span style="font-family:宋体">数字库字段名，全部小写（系统自动转换），可以使用下划线分隔，建议不要超过</span>20个字符</span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">2.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">字段名称</span></strong><strong></strong>
</h1>
<p>
    <span style="font-family: 宋体;font-size: 12px"><span style="font-family:宋体">建议</span>2-6个字，不要超过10个字</span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">3.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">字段的类型</span></strong><strong></strong>
</h1>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">这是非常重要的配置，影响数据呈献的格式和添加、编辑、搜索的方式</span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.1.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">text=<span style="font-family:黑体">文本</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.2.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">textarea=<span style="font-family:黑体">大文本</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.3.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">editor=<span style="font-family:黑体">编辑器</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.4.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">email=<span style="font-family:黑体">邮箱</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.5.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">phone=<span style="font-family:黑体">电话</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.6.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">mobile=<span style="font-family:黑体">手机</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.7.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">url=<span style="font-family:黑体">链接地址</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.8.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">int=<span style="font-family:黑体">整型</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.9.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">unsign=<span style="font-family:黑体">非负整型</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.10.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">decimal=<span style="font-family:黑体">小数</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.11.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">datetime=<span style="font-family:黑体">日期时间</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.12.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">date=<span style="font-family:黑体">日期</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.13.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">time=<span style="font-family:黑体">时间</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.14.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">image=<span style="font-family:黑体">图片</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.15.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">video=<span style="font-family:黑体">视频</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.16.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">file=<span style="font-family:黑体">文件</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.17.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">ip=IP<span style="font-family:黑体">地址</span></span></strong><strong></strong>
</h2>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.18.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">dict=<span style="font-family:黑体">数据字典</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">比较重要的一个配置，关联数据字典里的数据。本开发模式建议将之前可能写死在程序里的一些配置如数据状态：</span>1=<span style="font-family:宋体">启用，</span><span style="font-family:Calibri">0=</span><span style="font-family:宋体">禁用，或者类型：</span><span style="font-family:Calibri">student=</span><span style="font-family:宋体">学生，</span><span style="font-family:Calibri">teacher=</span><span style="font-family:宋体">角色等，全部做为数据字典进行初始化管理，然后将该字段做为数据字典类型进行处理。</span></span>
</p>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">数据字典配合</span>option&gt;dict<span style="font-family:宋体">指定数据字典的代码</span></span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">3.19.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">relation=<span style="font-family:黑体">关联模型</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">最重要和复杂的配置，解决数据表一对一，一对多，对多对的关联关系</span>
</p>
<h3>
    <span style="font-family: Calibri;font-size: 21px">3.19.1.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 21pxfont-family:宋体">一对一</span></strong><strong></strong>
</h3>
<h3>
    <span style="font-family: Calibri;font-size: 21px">3.19.2.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 21pxfont-family:宋体">一对多</span></strong><strong></strong>
</h3>
<p>
    <span style=";font-family:宋体;font-size:14px">option &gt; {</span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">model <span style="font-family:宋体">必填，关联数据的模型名称，支持</span><span style="font-family:Calibri">D</span><span style="font-family:宋体">方法调用</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">title <span style="font-family:宋体">必填，关联数据的展示字段</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">condition <span style="font-family:宋体">可选，进行关联操作时的数据过滤条件</span></span>
</p>
<p>
    <span style=";font-family:宋体;font-size:14px">}</span>
</p>
<p>
    <span style=";font-family:宋体;font-size:14px">&nbsp;</span>
</p>
<h3>
    <span style="font-family: Calibri;font-size: 21px">3.19.3.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 21pxfont-family:宋体">多对多</span></strong><strong></strong>
</h3>
<p>
    <span style=";font-family:宋体;font-size:14px">option &gt; {</span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">model <span style="font-family:宋体">必填，关联数据的模型名称，支持</span><span style="font-family:Calibri">D</span><span style="font-family:宋体">方法调用</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">title <span style="font-family:宋体">必填，关联数据的展示字段</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">condition <span style="font-family:宋体">可选，进行关联操作时的数据过滤条件</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">table <span style="font-family:宋体">必填，中间关联表名称，不要需要前缀</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">fkey <span style="font-family:宋体">必填，</span><span style="font-family:宋体">中间表中</span><span style="font-family:宋体">当前模型数据字段</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">rkey <span style="font-family:宋体">必填，中间表中被关联数据字段</span></span>
</p>
<p style="margin-left:28px">
    <span style=";font-family:宋体;font-size:14px">api &nbsp;<span style="font-family:宋体">选填</span><span style="font-family:Calibri">,</span><span style="font-family:宋体">数据源</span></span>
</p>
<p>
    <span style=";font-family:宋体;font-size:14px">}</span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">4.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">长度</span></strong><strong></strong>
</h1>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">主要是限制最大的长度，</span>decimal<span style="font-family:宋体">还需要指定小数点后的长度，默认为</span><span style="font-family:Calibri">10</span><span style="font-family:宋体">，</span><span style="font-family:Calibri">2</span></span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">5.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">默认值</span></strong><strong></strong>
</h1>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">日期时间相关类型支持</span>now</span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">6.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">属性</span></strong><strong></strong>
</h1>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">附加在输入（选择）元素之上，比如：</span>
</p>
<p style="margin-left:28px">
    <span style="font-family:Wingdings;font-size:14px">l&nbsp;</span><span style=";font-family:宋体;font-size:14pxfont-family:宋体">系统内置的联动功能</span>
</p>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">联动下级：</span>&#39;attr&#39; =&gt; &#39;affect=&quot;pid&quot; tip=&quot;<span style="font-family:宋体">所属应用</span><span style="font-family:Calibri">&quot;&#39;,</span></span>
</p>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">绑定上级：</span>depend=&quot;app_id&quot; tip=&quot;<span style="font-family:宋体">上级菜单</span><span style="font-family:Calibri">&quot;</span></span>
</p>
<p style="margin-left:28px">
    <span style="font-family:Wingdings;font-size:14px">l&nbsp;</span><span style=";font-family:宋体;font-size:14pxfont-family:宋体">输出限制：</span><span style=";font-family:宋体;font-size:14px">minlength=&quot;1&quot; maxlength=&quot;50&quot;</span>
</p>
<p style="margin-left:0;text-indent:0">
    <span style=";font-family:宋体;font-size:14px">&nbsp;</span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">7.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">样式</span></strong><strong></strong>
</h1>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">自定义样式，比如：</span>
</p>
<p>
    <span style=";font-family:宋体;font-size:16px">验证：</span><span style=";font-family:宋体;font-size:14px">required</span>
</p>
<h1>
    <span style="font-family: Calibri;font-size: 29px">8.&nbsp;</span><strong><span style="font-family: 宋体;font-size: 29px">option array </span></strong><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">额外</span></strong><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">参数</span></strong><strong><span style="font-family: 宋体;font-size: 29pxfont-family:宋体">选项</span></strong><strong></strong>
</h1>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.1.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">model relation<span style="font-family:黑体">关联的数据模型</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">当字段类型为关联时，必填，</span><span style="font-family:宋体">关联</span><span style="font-family:宋体">数据的模型名称，支持</span>D<span style="font-family:宋体">方法调用</span></span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.2.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">title relation<span style="font-family:黑体">被关联数据的展示字段</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">当字段类型为关联时，必填，关联数据的展示字段</span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.3.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">condition relation<span style="font-family:黑体">关联数据</span><span style="font-family:黑体">操作时的数据过滤条件</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">当字段类型为关联时，选填，关联数据操作时的数据过滤条件，</span>form&gt;api<span style="font-family:宋体">无用</span></span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.4.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">table relation<span style="font-family:黑体">关联数据</span><span style="font-family:黑体">中间表名称</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">当字段类型为多对多关联时，必填，中间关联表名称</span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.5.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">fkey relation<span style="font-family:黑体">关联数据</span><span style="font-family:黑体">中间表中</span><span style="font-family:黑体">当前模型数据字段</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">当字段类型为多对多关联时，必填，中间表中当前模型数据字段</span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.6.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">rkey relation<span style="font-family:黑体">关联数据</span><span style="font-family:黑体">中间表中被关联数据字段</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">当字段类型为多对多关联时，</span><span style="font-family:宋体">必填，中间表中被关联数据字段</span></span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.7.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">api &nbsp;<span style="font-family:黑体">数据源</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">设置关联对象的数据源</span>
</p>
<h2>
    <span style="font-family: Arial;font-size: 21px">8.8.&nbsp;</span><strong><span style="font-family: 黑体;font-size: 21px">dict<span style="font-family:黑体">字典代码</span></span></strong><strong></strong>
</h2>
<p>
    <span style=";font-family:宋体;font-size:14pxfont-family:宋体">数字字典的代码</span>
</p>